package arithmetic.functionTest;

/**
 * @author jiangfeng
 * Created on 2020-04-07
 */
public class Main {
    public static void main(String[] args) {
        TestFunction<JavaBean, Object> of = TestFunction.of(JavaBean.class);

        String fieldName = of.getFieldName(JavaBean::getTestB);
        System.out.println(fieldName);

        String field2 = TestFunction.<JavaBean, Object>getField2(JavaBean::getTestB);
        System.out.println(field2);
    }
}
